let express = require("express");

let Router = express.Router();  // 创建路由

// 账号

// Router.get()
// Router.post()
// Router.all()


// /account   对一级路由本身进行拦截
Router.get("/", function (req, res) {
    res.end("/account")
})

// /account/xxx   对一级路由下的子路由进行拦截
Router.get("/add", function (req, res) {
    res.end("/account/add")
})
Router.get("/del", function (req, res) {
    res.end("/account/del")
})
Router.get("/update", function (req, res) {
    res.end("/account/update")
})

Router.get("/login", function (req, res) {
    res.end("/account/login")
})





module.exports = Router;
